package com.rtx.edi.platform.handler.service;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.rtx.edi.platform.handler.mapper.HandleSqlMapper;

@Service
public class HandleSqlService {
	
	Logger log =LoggerFactory.getLogger(this.getClass());
	
	@Autowired
	HandleSqlMapper handleSqlMapper;
	

	@Transactional
	public void insertSql(List<String> sqlList) {
		for(String sql:sqlList) {
			log.info("执行sql插入语句-{}",sql);
			handleSqlMapper.insetSql(sql);
		}
	}
}
